<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">

<ui:composition template="../template.xhtml">
	<ui:define name="content">
		<rich:panel >
			<f:facet name="header">
				<h:outputText value="#{subscriberEditorBean.title}" />
			</f:facet>
			<h:form>
				<h:panelGrid columns="3">
					<h:outputText value="Name:" />
					<h:inputText id="name" required="true"
						value="#{subscriberEditorBean.name}"
						requiredMessage="Name is required.">
					</h:inputText>
					<rich:message for="name" />

					<h:outputText value="IČO:" />
					<h:inputText id="ico" required="true"
						value="#{subscriberEditorBean.ico}"
						requiredMessage="IČO is required">
					</h:inputText>
					<rich:message for="ico" />

					<h:outputText value="DIČ:" />
					<h:inputText id="dic" required="true"
						value="#{subscriberEditorBean.dic}"
						requiredMessage="DIČ is required">
					</h:inputText>
					<rich:message for="dic" />

					<h:outputText value="Account Number:" />
					<h:inputText id="accountNumber" required="true"
						value="#{subscriberEditorBean.accountNumber}"
						requiredMessage="Account number is required">
					</h:inputText>
					<rich:message for="accountNumber" />

					<h:outputText value="Bank Name:" />
					<h:inputText id="bankName" value="#{subscriberEditorBean.bankName}">
					</h:inputText>
					<rich:message for="bankName" />

					<h:outputText value="IBAN:" />
					<h:inputText id="iban" value="#{subscriberEditorBean.iban}">
					</h:inputText>
					<rich:message for="iban" />

					<f:facet name="footer">
						<h:commandButton action="#{subscriberEditorBean.submit}" value="Store" />
						<h:commandButton action="back" value="Cancel" immediate="true" />
					</f:facet>
				</h:panelGrid>
			</h:form>
		</rich:panel>
	</ui:define>
</ui:composition>
</html>